package com.touchmenotapps.radialdemo;

import com.touchmenotapps.widget.radialmenu.semicircularmenu.SemiCircularRadialMenu;
import com.touchmenotapps.widget.radialmenu.semicircularmenu.SemiCircularRadialMenuItem;
import com.touchmenotapps.widget.radialmenu.semicircularmenu.SemiCircularRadialMenuItem.OnSemiCircularRadialMenuPressed;

import android.app.Activity;
import android.os.Bundle;
import android.widget.Toast;

public class SemiCircularRadialMenuActivity extends Activity {
	
	private SemiCircularRadialMenu mMenu, mMenu2;
	
	
	private SemiCircularRadialMenuItem mArkitektur, mStedet, mBrugere, mStabilitet, mOekonomi, mEnergidesign, mTekniskeInstallationer, mIndustrialisering;
	
	

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_semi_circular_radial_menu);
		
		mArkitektur = new SemiCircularRadialMenuItem("Arkitektur", R.drawable.arkitektur, "Arkitektur");
		mStedet = new SemiCircularRadialMenuItem("Stedet", getResources().getDrawable(R.drawable.ic_action_dislike), "Stedet");
		mBrugere = new SemiCircularRadialMenuItem("Brugere", getResources().getDrawable(R.drawable.ic_action_info), "Brugere");
		mStabilitet = new SemiCircularRadialMenuItem("Stabilitet", getResources().getDrawable(R.drawable.ic_action_refresh), "Stabilitet");
		mOekonomi = new SemiCircularRadialMenuItem("Oekonomi", getResources().getDrawable(R.drawable.ic_action_search), "Oekonomi");
		mEnergidesign = new SemiCircularRadialMenuItem("Energidesign", getResources().getDrawable(R.drawable.ic_action_camera), "Energidesign");
		mTekniskeInstallationer = new SemiCircularRadialMenuItem("TekniskeInstallationer", getResources().getDrawable(R.drawable.ic_action_camera), "TekniskeInstallationer");
		mIndustrialisering = new SemiCircularRadialMenuItem("Industrialisering", getResources().getDrawable(R.drawable.ic_action_camera), "mIndustrialisering" );
		
		mMenu = (SemiCircularRadialMenu) findViewById(R.id.radial_menu);
		mMenu.addMenuItem(mArkitektur.getMenuID(), mArkitektur);
		mMenu.addMenuItem(mStedet.getMenuID(), mStedet);
		mMenu.addMenuItem(mBrugere.getMenuID(), mBrugere);
		mMenu.addMenuItem(mStabilitet.getMenuID(), mStabilitet);
		
		
		mMenu2 = (SemiCircularRadialMenu) findViewById(R.id.radial_menu2);
		mMenu2.addMenuItem(mEnergidesign.getMenuID(), mEnergidesign);
		mMenu2.addMenuItem(mTekniskeInstallationer.getMenuID(), mTekniskeInstallationer);
		mMenu2.addMenuItem(mIndustrialisering.getMenuID(), mIndustrialisering);
		mMenu2.addMenuItem(mOekonomi.getMenuID(), mOekonomi);
		
				
		mArkitektur.setOnSemiCircularRadialMenuPressed(new OnSemiCircularRadialMenuPressed() {
			@Override
			public void onMenuItemPressed() {
				Toast.makeText(SemiCircularRadialMenuActivity.this, mArkitektur.getText(), Toast.LENGTH_LONG).show();
			}
		});
		
		mStedet.setOnSemiCircularRadialMenuPressed(new OnSemiCircularRadialMenuPressed() {
			@Override
			public void onMenuItemPressed() {
				Toast.makeText(SemiCircularRadialMenuActivity.this, mStedet.getText(), Toast.LENGTH_LONG).show();
			}
		});
		
		mBrugere.setOnSemiCircularRadialMenuPressed(new OnSemiCircularRadialMenuPressed() {
			@Override
			public void onMenuItemPressed() {
				Toast.makeText(SemiCircularRadialMenuActivity.this, mBrugere.getText(), Toast.LENGTH_LONG).show();
			}
		});
		
		mStabilitet.setOnSemiCircularRadialMenuPressed(new OnSemiCircularRadialMenuPressed() {
			@Override
			public void onMenuItemPressed() {
				Toast.makeText(SemiCircularRadialMenuActivity.this, mStabilitet.getText(), Toast.LENGTH_LONG).show();
			}
		});
		
		mOekonomi.setOnSemiCircularRadialMenuPressed(new OnSemiCircularRadialMenuPressed() {
			@Override
			public void onMenuItemPressed() {
				Toast.makeText(SemiCircularRadialMenuActivity.this, mOekonomi.getText(), Toast.LENGTH_LONG).show();
				
				
			}
		});
		
		mEnergidesign.setOnSemiCircularRadialMenuPressed(new OnSemiCircularRadialMenuPressed() {
			@Override
			public void onMenuItemPressed() {
				Toast.makeText(SemiCircularRadialMenuActivity.this, mEnergidesign.getText(), Toast.LENGTH_LONG).show();
			}
		});
		
		mTekniskeInstallationer.setOnSemiCircularRadialMenuPressed(new OnSemiCircularRadialMenuPressed() {
			@Override
			public void onMenuItemPressed() {
				Toast.makeText(SemiCircularRadialMenuActivity.this, mTekniskeInstallationer.getText(), Toast.LENGTH_LONG).show();
			}
		});
		
		mIndustrialisering.setOnSemiCircularRadialMenuPressed(new OnSemiCircularRadialMenuPressed() {
			@Override
			public void onMenuItemPressed() {
				Toast.makeText(SemiCircularRadialMenuActivity.this, mIndustrialisering.getText(), Toast.LENGTH_LONG).show();
			}
		});
	}
}
